package Date;
import java.util.Comparator;
public class EmployeeComparator implements Comparator<Employee> {
	public int compare(Employee o1,Employee o2){
        if (o1.getBirthDate().getTime() < o2.getBirthDate().getTime()) { 
            return 1; 
        } else if (o1.getBirthDate().getTime() > o2.getBirthDate().getTime()) { 
            return -1; 
        } else { 
            return 0; 
        } 
    }
}
 

